package com.leigang.java.code.design.mode.templateMethod;

/**
 * @author leigang
 * @version 1.0
 * @date 2022/5/4 22:53
 **/
public class Tea {
    /**
     * 准备工作
     */
    void prepareRecipe(){
        boilWater();
        steepTeaBag();
        pourInCup();
        addLemon();
    }

    public void boilWater(){
        System.out.println("Boiling Water");
    }

    public void steepTeaBag(){
        System.out.println("Steeping the tea");
    }

    public void pourInCup(){
        System.out.println("Pouring into cup");
    }

    public void addLemon(){
        System.out.println("Adding Lemon");
    }
}
